const { postRequest } = require('./request')

// 展示省信息
const locationProvince = (params) => postRequest('/location/province', params)
// 展示市信息
const locationCity = (params) => postRequest('/location/city', params)
// 展示县区信息
const locationDistrict = (params) => postRequest('/location/district', params)
// 展示街道信息
const locationStreet = (params) => postRequest('/location/street', params)
// 临时缓存用户定位查询信息
const locationSave = (params) => postRequest('/location/save', params)

module.exports = {
  locationProvince,
  locationCity,
  locationDistrict,
  locationStreet,
  locationSave,
}